<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/Public.css" />
    <script type="text/javascript">
        window.UEDITOR_HOME_URL='__ROOT__/Data/ueditor/utf8-php/';
        window.onload=function(){
            window.UEDITOR_CONFIG.initialFrameHeight=400;
            window.UEDITOR_CONFIG.initialFrameWidth=1000;
            UE.getEditor('content');
        }
    </script>
    <link href="__PUBLIC__/Css/main.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="__ROOT__/Data/ueditor/utf8-php/ueditor.config.js"></script>
    <script type="text/javascript" src="__ROOT__/Data/ueditor/utf8-php/ueditor.all.min.js"></script>
</head>
<body>
<h1>
    <span class="action-span1"><a href="">管理中心</a> </span><span id="search_id" class="action-span1"> &nbsp;&nbsp;&nbsp;&nbsp;添加商品</span>
    <div style="clear:both"></div>
</h1>
<form action="<?php echo U(GROUP_NAME.'/Goods/runAddGoods');?>" method="post" enctype='multipart/form-data'>
    <table class="table">
        <tr>
            <td align="right">商品通用名:</td>
            <td >
                <input type="text" value="" name="name">
            </td>
        </tr>
        <tr>
            <td align="right">商品货号:</td>
            <td >
                <input type="text" value="" name="goods_sn">
            </td>
        </tr>
        <tr>
            <td align="right">商品分类:</td>
            <td >
                <select name="cate_id">
                    <?php echo ($cate); ?>
                </select>
            </td>
        </tr>
        <tr>
            <td align="right">基本单位:</td>
            <td >
                <input type="text" value="" name="goods_unit">
            </td>
        </tr>
        <tr>
            <td align="right">生产厂商:</td>
            <td >
                <input type="text" value="" name="factory_name">
            </td>
        </tr>
        <tr>
            <td align="right">规格:</td>
            <td >
                <input type="text" value="" name="product_type">
            </td>
        </tr>
        <tr>
            <td align="right">处方药标识:</td>
            <td >
                &nbsp;<input  type="radio" name="OTC_flag" value="1" >是
                &nbsp;&nbsp;<input  type="radio" name="OTC_flag" value="0" checked >否
            </td>
        </tr>
        <tr>
            <td align="right">本店售价:</td>
            <td >
                <input type="text" value="" name="shop_price">
            </td>
        </tr>
        <tr>
            <td align="right">市场售价:</td>
            <td >
                <input type="text" value="" name="market_price">
            </td>
        </tr>
        <tr>
            <td align="right">虚拟销量:</td>
            <td >
                <input type="text" value="" name="sale_num">
            </td>
        </tr>
        <tr>
            <td align="right">商品主图上传:</td>
            <td><input type="file" name="img"/></td>
        </tr>
        <tr>
            <td align="right">商品相册上传:</td>
            <td><input type="file" name="images" multiple/></td>
        </tr>
        <tr>
            <td colspan="2">
                <textarea name="content" id="content"></textarea>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <input type="submit" value="保存添加">
            </td>
        </tr>
    </table>
</form>
</body>
</html>